package com.xianniu.ltc.feign.hystrix;

import com.xianniu.ltc.feign.api.AuthService;
import com.xianniu.ltc.model.po.AuthOrganizationPO;
import com.xxl.sso.core.entity.ReturnT;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author yk
 * @version 1.0
 * @description: < Api Feign调用熔断机制 >
 * @date 2021/8/31 10:51
 */
@Slf4j
@Component
public class AuthServiceHystrix implements AuthService {

    @Override
    public ReturnT addOrExit(AuthOrganizationPO param, String token) {
        return new ReturnT(ReturnT.FAIL_CODE, "服务异常了～～");
    }

    @Override
    public ReturnT del(AuthOrganizationPO param, String token) {
        return new ReturnT(ReturnT.FAIL_CODE, "服务异常了～～");
    }


}
